package com.hongye.why.app;

import android.os.Environment;
import org.litepal.LitePalApplication;
import java.io.File;

/**
 * 程序入口
 */
public class YFApplication extends LitePalApplication {

    @Override
    public void onCreate() {
        super.onCreate();
        String status = Environment.getExternalStorageState();
        if (status.equals(Environment.MEDIA_MOUNTED)) {
            File sd = Environment.getExternalStorageDirectory();
            String path = sd.getPath()+"/Honye";
            File file = new File(path);
            if ( !file.exists() ) {
                file.mkdirs();
            }
        }

        AppManager.getManager().initApplication(this);
    }
}
